package com.ctg.behavior.client.impala.common;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

import com.ctg.behavior.common.consts.CtResultConsts;

import lombok.Data;

@Data
public class CtQueryResult {

	private List<LinkedHashMap<String, Object>> rows = new ArrayList<>();
	
	private String code = CtResultConsts.RET_SUCCESS;
	private String msg;
	private String sql;
	
	public boolean isSuccess() {
		return CtResultConsts.RET_SUCCESS.equals(code);
	}
	
}


